package com.cake.entity;


import com.cake.entity.base.BaseEntity;

public class XxMenu extends BaseEntity{
    /**
     * 菜单主键
     * 表字段 : xx_menu.id
     */
    private Long id;

    /**
     * 菜单名称
     * 表字段 : xx_menu.name
     */
    private String name;

    /**
     * 菜单链接地址
     * 表字段 : xx_menu.link_url
     */
    private String linkUrl;

    /**
     * 父级菜单主键
     * 表字段 : xx_menu.parent_id
     */
    private Long parentId;

    /**
     * 菜单排序位
     * 表字段 : xx_menu.orders
     */
    private Integer orders;

    /**
     * 菜单删除标记
     * 表字段 : xx_menu.del_flag
     */
    private Integer delFlag;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table xx_menu
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl == null ? null : linkUrl.trim();
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", linkUrl=").append(linkUrl);
        sb.append(", parentId=").append(parentId);
        sb.append(", orders=").append(orders);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}